package com.atguigu.yygh.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @description: TODO
 * @author: 化一帆
 * @date: 2022/12/4 18:21
 * @version: v1.0
 */
/*@EnableDiscoveryClient  //发布注册中心
@EnableFeignClients(basePackages = "com.atguigu") //服务调用 扫描Feign接口所在的位置
@MapperScan("com.atguigu") //扫描各种组件的路径*/
@ComponentScan(basePackages = "com.atguigu")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.atguigu")
@MapperScan("com.atguigu.yygh.user.mapper")
@SpringBootApplication
public class ServiceUserApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceUserApplication.class, args);
    }
}